package com.cy.milktea.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface RoleMenuMapper {

    int insert(@Param("roleId") Integer roleId,
               @Param("menuIds") List<Integer> menuIds);

    int deleteByRoleId(Integer roleId);

    @Select("select count(*) from tb_role_menu where menuId = #{menuId}")
    int selectCountMenuId(Integer menuId);
}
